<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改数据应用场景储备台账')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-scenarios-edit" th:object="${uApplicationScenarios}">
            <input name="catalogId" th:field="*{catalogId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据目录名称：</label>
                <div class="col-sm-8">
                    <input name="catalogName" th:field="*{catalogName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">领域分类：</label>
                <div class="col-sm-8">
                    <input name="keyAreasType" th:field="*{keyAreasType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数源单位：</label>
                <div class="col-sm-8">
                    <input name="sourceUnit" th:field="*{sourceUnit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关联类目：</label>
                <div class="col-sm-8">
                    <input name="categoryClassification" th:field="*{categoryClassification}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">应用系统：</label>
                <div class="col-sm-8">
                    <input name="sourceSystem" th:field="*{sourceSystem}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据最近更新日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="dataCurrentUpdateTime" th:value="${#dates.format(uApplicationScenarios.dataCurrentUpdateTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">归集量：</label>
                <div class="col-sm-8">
                    <input name="notionalPoolingNum" th:field="*{notionalPoolingNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">共享方式：</label>
                <div class="col-sm-8">
                    <input name="shareType" th:field="*{shareType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开放类型：</label>
                <div class="col-sm-8">
                    <input name="openType" th:field="*{openType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数据范围：</label>
                <div class="col-sm-8">
                    <input name="dataRange" th:field="*{dataRange}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更新频率：</label>
                <div class="col-sm-8">
                    <input name="frequency" th:field="*{frequency}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/scenarios";
        $("#form-scenarios-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-scenarios-edit').serialize());
            }
        }

        $("input[name='dataCurrentUpdateTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>